Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Background monitor #198

Merged
merged 8 commits into from
May 16, 2019
Merged

Conversation

matthiasclasen
Copy link
Contributor

This is an implementation of the platform-dependent parts of flatpak/xdg-desktop-portal#319

Move the fdo support code behind an api.
This is in preparation for using it from
the background portal backend.
@matthiasclasen
Copy link
Contributor Author

One issue with this: we are currently getting the wrong information from gnome-shell. It puts desktop filenames into the windows list, which we misinterpret as app ids.

Add a portal backend for getting the list of active
applications, and for showing a notification about
apps that are running in the background.
@matthiasclasen
Copy link
Contributor Author

src/lockdown.c Outdated Show resolved Hide resolved
src/background.c Outdated Show resolved Hide resolved
src/background.c Outdated Show resolved Hide resolved
Implement the EnableAutostart method by
generating an autostart file for the
application in XDG_CONFIG_HOME/autostart.
The gnome-shell introspection api returns us
desktop file names instead of proper app ids.
Work around this by looking for X-Flatpak.
src/background.c Outdated
goto out;
}

commandline = g_strjoinv (" ", (char **)arg_commandline);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is where we should do any required escaping, rather than in the portal.

Matthias Clasen added 3 commits May 15, 2019 11:32
Use flags for autostart
More flexible NotifyBackground api
Add an allow-once option
src/background.c Outdated
goto out;
}

commandline = g_strjoinv (" ", (char **)arg_commandline);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still need to escape here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants